package ch6oopexerpet;

public class YingWu  extends Pet{
    public YingWu () {
    }

    public YingWu(String name, String kind, double weight) {
        super(name, kind, weight);
    }

    public void eat(){
        System.out.println("鹦鹉吃种子");
    }
    public void sleep(){
        System.out.println("鹦鹉站着睡觉");
    }
    public void yingWuMethod(){
        System.out.println("鹦鹉会飞");
    }
    public void show(){
        super.show();
        yingWuMethod();
    }
}
